summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-08 03:41:26 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:06:00 +0200
commit8b8123b733109f505a10e18f89af2e67d17755f1 (patch)
tree923028abfe3f268b49a9e3a12cb6e464a996daa6
parentandroid: remove spurious warnings about BCn formats when patched with adrenotools (diff)
downloadyuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar
yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.gz
yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.bz2
yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.lz
yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.xz
yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.tar.zst
yuzu-8b8123b733109f505a10e18f89af2e67d17755f1.zip
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 1eec4afb0..75c450365 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -266,6 +266,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica
return format_properties;
}
+#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format_properties) {
// These properties are extracted from Adreno driver 512.687.0
constexpr VkFormatFeatureFlags tiling_features{
@@ -289,6 +290,7 @@ void OverrideBcnFormats(std::unordered_map<VkFormat, VkFormatProperties>& format
format_properties[format].bufferFeatures = buffer_features;
}
}
+#endif
NvidiaArchitecture GetNvidiaArchitecture(vk::PhysicalDevice physical,
const std::set<std::string, std::less<>>& exts) {